package com.chenxingnet.dto;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class UsercontrolExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public UsercontrolExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andUidIsNull() {
            addCriterion("uId is null");
            return (Criteria) this;
        }

        public Criteria andUidIsNotNull() {
            addCriterion("uId is not null");
            return (Criteria) this;
        }

        public Criteria andUidEqualTo(Integer value) {
            addCriterion("uId =", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotEqualTo(Integer value) {
            addCriterion("uId <>", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThan(Integer value) {
            addCriterion("uId >", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThanOrEqualTo(Integer value) {
            addCriterion("uId >=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThan(Integer value) {
            addCriterion("uId <", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThanOrEqualTo(Integer value) {
            addCriterion("uId <=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidIn(List<Integer> values) {
            addCriterion("uId in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotIn(List<Integer> values) {
            addCriterion("uId not in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidBetween(Integer value1, Integer value2) {
            addCriterion("uId between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotBetween(Integer value1, Integer value2) {
            addCriterion("uId not between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andJidIsNull() {
            addCriterion("jId is null");
            return (Criteria) this;
        }

        public Criteria andJidIsNotNull() {
            addCriterion("jId is not null");
            return (Criteria) this;
        }

        public Criteria andJidEqualTo(Integer value) {
            addCriterion("jId =", value, "jid");
            return (Criteria) this;
        }

        public Criteria andJidNotEqualTo(Integer value) {
            addCriterion("jId <>", value, "jid");
            return (Criteria) this;
        }

        public Criteria andJidGreaterThan(Integer value) {
            addCriterion("jId >", value, "jid");
            return (Criteria) this;
        }

        public Criteria andJidGreaterThanOrEqualTo(Integer value) {
            addCriterion("jId >=", value, "jid");
            return (Criteria) this;
        }

        public Criteria andJidLessThan(Integer value) {
            addCriterion("jId <", value, "jid");
            return (Criteria) this;
        }

        public Criteria andJidLessThanOrEqualTo(Integer value) {
            addCriterion("jId <=", value, "jid");
            return (Criteria) this;
        }

        public Criteria andJidIn(List<Integer> values) {
            addCriterion("jId in", values, "jid");
            return (Criteria) this;
        }

        public Criteria andJidNotIn(List<Integer> values) {
            addCriterion("jId not in", values, "jid");
            return (Criteria) this;
        }

        public Criteria andJidBetween(Integer value1, Integer value2) {
            addCriterion("jId between", value1, value2, "jid");
            return (Criteria) this;
        }

        public Criteria andJidNotBetween(Integer value1, Integer value2) {
            addCriterion("jId not between", value1, value2, "jid");
            return (Criteria) this;
        }

        public Criteria andRoleidIsNull() {
            addCriterion("RoleID is null");
            return (Criteria) this;
        }

        public Criteria andRoleidIsNotNull() {
            addCriterion("RoleID is not null");
            return (Criteria) this;
        }

        public Criteria andRoleidEqualTo(Integer value) {
            addCriterion("RoleID =", value, "roleid");
            return (Criteria) this;
        }

        public Criteria andRoleidNotEqualTo(Integer value) {
            addCriterion("RoleID <>", value, "roleid");
            return (Criteria) this;
        }

        public Criteria andRoleidGreaterThan(Integer value) {
            addCriterion("RoleID >", value, "roleid");
            return (Criteria) this;
        }

        public Criteria andRoleidGreaterThanOrEqualTo(Integer value) {
            addCriterion("RoleID >=", value, "roleid");
            return (Criteria) this;
        }

        public Criteria andRoleidLessThan(Integer value) {
            addCriterion("RoleID <", value, "roleid");
            return (Criteria) this;
        }

        public Criteria andRoleidLessThanOrEqualTo(Integer value) {
            addCriterion("RoleID <=", value, "roleid");
            return (Criteria) this;
        }

        public Criteria andRoleidIn(List<Integer> values) {
            addCriterion("RoleID in", values, "roleid");
            return (Criteria) this;
        }

        public Criteria andRoleidNotIn(List<Integer> values) {
            addCriterion("RoleID not in", values, "roleid");
            return (Criteria) this;
        }

        public Criteria andRoleidBetween(Integer value1, Integer value2) {
            addCriterion("RoleID between", value1, value2, "roleid");
            return (Criteria) this;
        }

        public Criteria andRoleidNotBetween(Integer value1, Integer value2) {
            addCriterion("RoleID not between", value1, value2, "roleid");
            return (Criteria) this;
        }

        public Criteria andUaccountIsNull() {
            addCriterion("uAccount is null");
            return (Criteria) this;
        }

        public Criteria andUaccountIsNotNull() {
            addCriterion("uAccount is not null");
            return (Criteria) this;
        }

        public Criteria andUaccountEqualTo(String value) {
            addCriterion("uAccount =", value, "uaccount");
            return (Criteria) this;
        }

        public Criteria andUaccountNotEqualTo(String value) {
            addCriterion("uAccount <>", value, "uaccount");
            return (Criteria) this;
        }

        public Criteria andUaccountGreaterThan(String value) {
            addCriterion("uAccount >", value, "uaccount");
            return (Criteria) this;
        }

        public Criteria andUaccountGreaterThanOrEqualTo(String value) {
            addCriterion("uAccount >=", value, "uaccount");
            return (Criteria) this;
        }

        public Criteria andUaccountLessThan(String value) {
            addCriterion("uAccount <", value, "uaccount");
            return (Criteria) this;
        }

        public Criteria andUaccountLessThanOrEqualTo(String value) {
            addCriterion("uAccount <=", value, "uaccount");
            return (Criteria) this;
        }

        public Criteria andUaccountLike(String value) {
            addCriterion("uAccount like", value, "uaccount");
            return (Criteria) this;
        }

        public Criteria andUaccountNotLike(String value) {
            addCriterion("uAccount not like", value, "uaccount");
            return (Criteria) this;
        }

        public Criteria andUaccountIn(List<String> values) {
            addCriterion("uAccount in", values, "uaccount");
            return (Criteria) this;
        }

        public Criteria andUaccountNotIn(List<String> values) {
            addCriterion("uAccount not in", values, "uaccount");
            return (Criteria) this;
        }

        public Criteria andUaccountBetween(String value1, String value2) {
            addCriterion("uAccount between", value1, value2, "uaccount");
            return (Criteria) this;
        }

        public Criteria andUaccountNotBetween(String value1, String value2) {
            addCriterion("uAccount not between", value1, value2, "uaccount");
            return (Criteria) this;
        }

        public Criteria andUpasswordIsNull() {
            addCriterion("uPassword is null");
            return (Criteria) this;
        }

        public Criteria andUpasswordIsNotNull() {
            addCriterion("uPassword is not null");
            return (Criteria) this;
        }

        public Criteria andUpasswordEqualTo(String value) {
            addCriterion("uPassword =", value, "upassword");
            return (Criteria) this;
        }

        public Criteria andUpasswordNotEqualTo(String value) {
            addCriterion("uPassword <>", value, "upassword");
            return (Criteria) this;
        }

        public Criteria andUpasswordGreaterThan(String value) {
            addCriterion("uPassword >", value, "upassword");
            return (Criteria) this;
        }

        public Criteria andUpasswordGreaterThanOrEqualTo(String value) {
            addCriterion("uPassword >=", value, "upassword");
            return (Criteria) this;
        }

        public Criteria andUpasswordLessThan(String value) {
            addCriterion("uPassword <", value, "upassword");
            return (Criteria) this;
        }

        public Criteria andUpasswordLessThanOrEqualTo(String value) {
            addCriterion("uPassword <=", value, "upassword");
            return (Criteria) this;
        }

        public Criteria andUpasswordLike(String value) {
            addCriterion("uPassword like", value, "upassword");
            return (Criteria) this;
        }

        public Criteria andUpasswordNotLike(String value) {
            addCriterion("uPassword not like", value, "upassword");
            return (Criteria) this;
        }

        public Criteria andUpasswordIn(List<String> values) {
            addCriterion("uPassword in", values, "upassword");
            return (Criteria) this;
        }

        public Criteria andUpasswordNotIn(List<String> values) {
            addCriterion("uPassword not in", values, "upassword");
            return (Criteria) this;
        }

        public Criteria andUpasswordBetween(String value1, String value2) {
            addCriterion("uPassword between", value1, value2, "upassword");
            return (Criteria) this;
        }

        public Criteria andUpasswordNotBetween(String value1, String value2) {
            addCriterion("uPassword not between", value1, value2, "upassword");
            return (Criteria) this;
        }

        public Criteria andUnameIsNull() {
            addCriterion("uName is null");
            return (Criteria) this;
        }

        public Criteria andUnameIsNotNull() {
            addCriterion("uName is not null");
            return (Criteria) this;
        }

        public Criteria andUnameEqualTo(String value) {
            addCriterion("uName =", value, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameNotEqualTo(String value) {
            addCriterion("uName <>", value, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameGreaterThan(String value) {
            addCriterion("uName >", value, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameGreaterThanOrEqualTo(String value) {
            addCriterion("uName >=", value, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameLessThan(String value) {
            addCriterion("uName <", value, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameLessThanOrEqualTo(String value) {
            addCriterion("uName <=", value, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameLike(String value) {
            addCriterion("uName like", value, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameNotLike(String value) {
            addCriterion("uName not like", value, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameIn(List<String> values) {
            addCriterion("uName in", values, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameNotIn(List<String> values) {
            addCriterion("uName not in", values, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameBetween(String value1, String value2) {
            addCriterion("uName between", value1, value2, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameNotBetween(String value1, String value2) {
            addCriterion("uName not between", value1, value2, "uname");
            return (Criteria) this;
        }

        public Criteria andUportraitIsNull() {
            addCriterion("uPortrait is null");
            return (Criteria) this;
        }

        public Criteria andUportraitIsNotNull() {
            addCriterion("uPortrait is not null");
            return (Criteria) this;
        }

        public Criteria andUportraitEqualTo(String value) {
            addCriterion("uPortrait =", value, "uportrait");
            return (Criteria) this;
        }

        public Criteria andUportraitNotEqualTo(String value) {
            addCriterion("uPortrait <>", value, "uportrait");
            return (Criteria) this;
        }

        public Criteria andUportraitGreaterThan(String value) {
            addCriterion("uPortrait >", value, "uportrait");
            return (Criteria) this;
        }

        public Criteria andUportraitGreaterThanOrEqualTo(String value) {
            addCriterion("uPortrait >=", value, "uportrait");
            return (Criteria) this;
        }

        public Criteria andUportraitLessThan(String value) {
            addCriterion("uPortrait <", value, "uportrait");
            return (Criteria) this;
        }

        public Criteria andUportraitLessThanOrEqualTo(String value) {
            addCriterion("uPortrait <=", value, "uportrait");
            return (Criteria) this;
        }

        public Criteria andUportraitLike(String value) {
            addCriterion("uPortrait like", value, "uportrait");
            return (Criteria) this;
        }

        public Criteria andUportraitNotLike(String value) {
            addCriterion("uPortrait not like", value, "uportrait");
            return (Criteria) this;
        }

        public Criteria andUportraitIn(List<String> values) {
            addCriterion("uPortrait in", values, "uportrait");
            return (Criteria) this;
        }

        public Criteria andUportraitNotIn(List<String> values) {
            addCriterion("uPortrait not in", values, "uportrait");
            return (Criteria) this;
        }

        public Criteria andUportraitBetween(String value1, String value2) {
            addCriterion("uPortrait between", value1, value2, "uportrait");
            return (Criteria) this;
        }

        public Criteria andUportraitNotBetween(String value1, String value2) {
            addCriterion("uPortrait not between", value1, value2, "uportrait");
            return (Criteria) this;
        }

        public Criteria andUpubdateIsNull() {
            addCriterion("uPubdate is null");
            return (Criteria) this;
        }

        public Criteria andUpubdateIsNotNull() {
            addCriterion("uPubdate is not null");
            return (Criteria) this;
        }

        public Criteria andUpubdateEqualTo(Date value) {
            addCriterion("uPubdate =", value, "upubdate");
            return (Criteria) this;
        }

        public Criteria andUpubdateNotEqualTo(Date value) {
            addCriterion("uPubdate <>", value, "upubdate");
            return (Criteria) this;
        }

        public Criteria andUpubdateGreaterThan(Date value) {
            addCriterion("uPubdate >", value, "upubdate");
            return (Criteria) this;
        }

        public Criteria andUpubdateGreaterThanOrEqualTo(Date value) {
            addCriterion("uPubdate >=", value, "upubdate");
            return (Criteria) this;
        }

        public Criteria andUpubdateLessThan(Date value) {
            addCriterion("uPubdate <", value, "upubdate");
            return (Criteria) this;
        }

        public Criteria andUpubdateLessThanOrEqualTo(Date value) {
            addCriterion("uPubdate <=", value, "upubdate");
            return (Criteria) this;
        }

        public Criteria andUpubdateIn(List<Date> values) {
            addCriterion("uPubdate in", values, "upubdate");
            return (Criteria) this;
        }

        public Criteria andUpubdateNotIn(List<Date> values) {
            addCriterion("uPubdate not in", values, "upubdate");
            return (Criteria) this;
        }

        public Criteria andUpubdateBetween(Date value1, Date value2) {
            addCriterion("uPubdate between", value1, value2, "upubdate");
            return (Criteria) this;
        }

        public Criteria andUpubdateNotBetween(Date value1, Date value2) {
            addCriterion("uPubdate not between", value1, value2, "upubdate");
            return (Criteria) this;
        }

        public Criteria andUreportstartIsNull() {
            addCriterion("uReportStart is null");
            return (Criteria) this;
        }

        public Criteria andUreportstartIsNotNull() {
            addCriterion("uReportStart is not null");
            return (Criteria) this;
        }

        public Criteria andUreportstartEqualTo(String value) {
            addCriterion("uReportStart =", value, "ureportstart");
            return (Criteria) this;
        }

        public Criteria andUreportstartNotEqualTo(String value) {
            addCriterion("uReportStart <>", value, "ureportstart");
            return (Criteria) this;
        }

        public Criteria andUreportstartGreaterThan(String value) {
            addCriterion("uReportStart >", value, "ureportstart");
            return (Criteria) this;
        }

        public Criteria andUreportstartGreaterThanOrEqualTo(String value) {
            addCriterion("uReportStart >=", value, "ureportstart");
            return (Criteria) this;
        }

        public Criteria andUreportstartLessThan(String value) {
            addCriterion("uReportStart <", value, "ureportstart");
            return (Criteria) this;
        }

        public Criteria andUreportstartLessThanOrEqualTo(String value) {
            addCriterion("uReportStart <=", value, "ureportstart");
            return (Criteria) this;
        }

        public Criteria andUreportstartLike(String value) {
            addCriterion("uReportStart like", value, "ureportstart");
            return (Criteria) this;
        }

        public Criteria andUreportstartNotLike(String value) {
            addCriterion("uReportStart not like", value, "ureportstart");
            return (Criteria) this;
        }

        public Criteria andUreportstartIn(List<String> values) {
            addCriterion("uReportStart in", values, "ureportstart");
            return (Criteria) this;
        }

        public Criteria andUreportstartNotIn(List<String> values) {
            addCriterion("uReportStart not in", values, "ureportstart");
            return (Criteria) this;
        }

        public Criteria andUreportstartBetween(String value1, String value2) {
            addCriterion("uReportStart between", value1, value2, "ureportstart");
            return (Criteria) this;
        }

        public Criteria andUreportstartNotBetween(String value1, String value2) {
            addCriterion("uReportStart not between", value1, value2, "ureportstart");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}